﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html ng-app>
<head>
    <script src="angular.js"></script>
    <script src="angular.min.js"></script>
    <script src="controller.js"></script>
</head>
<body>
    
    


<ul class="phones">
  <li ng-repeat="phone in phones | filter:query | orderBy:orderProp">
    {{phone.name}}
    <p>{{phone.snippet}}</p>
  </li>
</ul>
    <%--    <ul>
        <li ng-repeat="phone in phones">{{phone.name}}
    <p>{{phone.snippet}}</p>
        </li>
    </ul>--%>
    <ul ng-controller="PersonList">
        <li ng-repeat="person in person">{{person.name}}
            
            <p >{{person.age}}</p>
        </li>

    </ul>

    <b  ng-controller="persondel"><p ng-repeat="person in person">{{person.name}}</p></b>
    <script>

        function persondel($scope) {
            $scope.person = [{ "name": "我们知道过去的事情" }];

        }
        function PersonList($scope) {
            $scope.person = [
                { "name": "xiaohong", "age": "12" },
                { "name": "xiaobai", "age": "15" }
            ];

        }

    </script>
</body>
</html>
